{
  "properties" : { },
  "id" : "copy1746605463533d67287",
  "script" : null,
  "groupId" : "b49fd3aa7ab944ca938fd37f3364f0ba",
  "name" : "R查询预警信息",
  "createTime" : null,
  "updateTime" : 1746667597411,
  "lock" : null,
  "createBy" : null,
  "updateBy" : "admin",
  "path" : "/wsalarm",
  "method" : "GET",
  "parameters" : [ {
    "name" : "orgid",
    "value" : "220",
    "description" : "站点ID",
    "required" : true,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }, {
    "name" : "page",
    "value" : "1",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  }, {
    "name" : "size",
    "value" : "20",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 0,\n    \"message\": \"success\",\n    \"data\": {\n        \"total\": 1,\n        \"list\": [\n            {\n                \"id\": \"10106070120250506164500171879781\",\n                \"stationkey\": \"101060701\",\n                \"orgid\": \"220004\",\n                \"name\": \"辽源市气象局发布雷电黄色预警\",\n                \"content\": \"吉林省辽源市气象台2025年5月6日16时45分发布雷电黄色预警信号：目前我市上游有对流云团生成发展，预计未来6小时，我市龙山区、西安区、高新开发区所有乡镇（街道）有中等强度以上的雷电活动，可能会造成雷电灾害事故，并可能伴有短时强降水、雷暴大风等强对流天气，市应急管理局、市气象局联合提醒城乡居民注意加强防范。\",\n                \"starttime\": \"2025-05-06T08:58:00.000+00:00\",\n                \"type\": \"1014\",\n                \"typename\": \"雷电\",\n                \"fxdate\": \"20250507\",\n                \"ctime\": \"2025-05-07T08:09:00.151+00:00\",\n                \"status\": \"active\",\n                \"endtime\": \"2025-05-07T08:58:00.000+00:00\",\n                \"severity\": \"Moderate\",\n                \"severitycolor\": \"Yellow\",\n                \"sender\": \"辽源市气象局\",\n                \"pubtime\": null\n            }\n        ]\n    },\n    \"timestamp\": 1746667590921,\n    \"executeTime\": 15\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
var sql = """
    select   t1.*  from ws_alarm_data t1  
    where 1 = 1 
      <if test="orgid != null and orgid != ''" > and t1.orgid LIKE CONCAT(#{orgid},'%') </if>
    order by t1.ctime desc
"""
return db.page(sql);
